Skip to content

Conversation

@LPegasus
Copy link
Contributor

@LPegasus LPegasus commented Dec 3, 2025

Summary

Fixes #5480

Details

Q: How did you solve the problem?
A: Following the current logic of how to analyze default subspace pnpm-lock.yaml changes. Refactor the logic to run for all subspaces.

Q: Mention any alternate approaches you considered.
A: I couldn't come up with a better alternative.

Q: Did you completely solve the problem, or are some cases not handled yet?
A: Yes. I think so.

Q: Does this change break backwards compatibility?
A: Yes.

Q: Could any aspects of your change impact performance?
A: For monorepo with many subspaces projects, it will take more time to check the pnpm-lock.yaml impact.

How it was tested

  1. Added a new repo in libraries/rush-lib/src/logic/test/repoWithSubspaces to test.
  2. Init a new Rush monorepo to test non-subspaces case with local built rush-lib:
  • commit something
  • update some dependencies
  • run rush list -t git:main to check the listed projects

Impacted documentation

None

@octogonz
Copy link
Collaborator

octogonz commented Dec 3, 2025

I added some stylistic feedback but otherwise LGTM.

Thanks for adding tests! 🏅

@iclanton iclanton moved this from Needs triage to In Progress in Bug Triage Dec 3, 2025
LPegasus and others added 4 commits December 4, 2025 09:48
…default-subspace-pnpmlock-check_2025-12-03-13-27.json

Co-authored-by: Pete Gonzalez <4673363+octogonz@users.noreply.github.com>
Co-authored-by: Pete Gonzalez <4673363+octogonz@users.noreply.github.com>
1. Fix `.pnpmfile.cjs` `readPackage` function is not defined.
2. Fix the comment of why 'e' is not in changedProjects.
@dmichon-msft dmichon-msft merged commit a8cc900 into microsoft:main Dec 10, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Closed in Bug Triage Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

[rush] Changes to the pnpm-lock.yaml file in non-default subspaces do not calculate the scope of affected projects

3 participants